<?php

$cars=array("yuan","er","ran");
      echo $cars[1];
      $sars[2]="Audi";
      
      echo "<pre>";
      print_r($cars);
      echo count($cars);
   
foreach ($cars as $value){
    echo $value;
}

        

$len = count($cars);
for($i =0; $i < $len; $i++){
    echo $cars[$i]."</br>";
}
$grades =array("星期一","星期二","星期三","星期四","星期五");
?>
<form>
    <select name="grade">
        <?php foreach ($grades as $value):  ?>
        <option value="<?php echo $value; ?>"><?php echo $value; ?></option>
        <?php        endforeach;?>
        <!--option value ="星期二">星期二</option>
        <option value ="星期三">星期三</option>
        <option value ="星期四">星期四</option>
        <option value ="星期五">星期五</option-->
        
    </select>
    
</form>

